<template>
  <div class="app-container">
    <el-form :model="searchForm" label-width="80px" @keyup.enter.native="search()">
      <el-row>
        <el-col class="other">
          <el-form-item label="职位名称" size="small">
            <el-input v-model="searchForm.jobTitle"></el-input>
          </el-form-item>
        </el-col>
        <el-col class="singleDatePicker">
          <el-form-item label="申请日期" size="small">
            <el-date-picker type="date" placeholder="选择申请日期" value-format="timestamp"
                            v-model="searchForm.applicationDate"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col class="singleDatePicker">
          <el-form-item label="到岗日期" size="small">
            <el-date-picker type="date" placeholder="选择到岗日期" value-format="timestamp" v-model="searchForm.arrivalDate"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col class="other">
          <el-form-item label="隶属部门" v-if="roleType===0||roleType===1" size="small">
            <el-input v-model="searchForm.teamName"></el-input>
          </el-form-item>
        </el-col>
        <el-col class="searchBtn">
          <el-form-item size="small">
            <el-button type="primary" icon="el-icon-search" @click="search()">搜索</el-button>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div class="table-btn">
      <el-button type="primary" size="small" icon="el-icon-plus" @click="addTeam()" v-if="roleType!==4&&roleType!==8">
        添加
      </el-button>

      <!--<el-button size="small" icon="el-icon-upload2">导出</el-button>-->
    </div>
    <my-table
      :data="tableData"
      :col-configs="colConfigs"
      v-loading="listLoading"
      :page-num="pageNum"
      :page-size="pageSize"
    >
      <el-table-column
        slot="opt"
        fixed="right"
        label="操作"
        width="120">
        <template slot-scope="scope">
          <el-button
            @click.native.prevent="editTeam(scope.row.personId)"
            type="text"
            size="small"
            v-if="roleType!==4&&roleType!==8"
          >
            修改
          </el-button>
          <el-button
            @click.native.prevent="chuli(scope.row)"
            type="text"
            size="small"
            v-if="roleType===4||roleType===8"
          >
            处理
          </el-button>
          <el-button
            @click.native.prevent="agree(scope.row)"
            type="text"
            size="small"
            v-if="(roleType===4||roleType===8)&&scope.row.isAgree"
          >
            同意
          </el-button>
          <el-popover
            placement="top"
            width="160"
            :ref="`popover-${scope.$index}`"
            v-if="roleType!==4&&roleType!==8"
          >
            <p>确定删除这条数据吗?</p>
            <div style="text-align: right; margin: 0">
              <el-button size="mini" type="text" @click="$refs[`popover-${scope.$index}`].doClose()">取消</el-button>
              <el-button type="primary" size="mini" @click.native.prevent="deleteRow(scope)">确定</el-button>
            </div>
            <el-button type="text" size="small" slot="reference" v-popover:popover-${scope.$index}>删除</el-button>
          </el-popover>
        </template>
      </el-table-column>
    </my-table>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="pageNum"
      :page-sizes="[10, 20, 30, 40]"
      :page-size="pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
    <el-dialog :title="dialogTitle" :visible.sync="outerVisible" width="700px">
      <el-form ref="teamRow" :rules="rules" :model="teamRow" label-width="110px">
        <el-form-item prop="applicationDate" label="申请时间" size="small" class="item-inline">
          <el-date-picker
            v-model="teamRow.applicationDate"
            type="date"
            value-format="timestamp"
            placeholder="选择日期"
            style="width: 190px">
          </el-date-picker>
        </el-form-item>
        <el-form-item prop="vacancyNumber" label="空缺人数" size="small" class="item-inline">
          <el-input type="工会经费" v-model.number="teamRow.vacancyNumber">
          </el-input>
        </el-form-item>
        <el-form-item prop="arrivalDate" label="到岗时间" size="small" class="item-inline">
          <el-date-picker
            v-model="teamRow.arrivalDate"
            type="date"
            value-format="timestamp"
            placeholder="选择日期"
            style="width: 190px">
          </el-date-picker>
        </el-form-item>
        <el-form-item prop="teamName" label="隶属部门" size="small" class="item-inline">
          <el-autocomplete
            v-model="teamRow.teamName"
            :fetch-suggestions="querySearchTeam"
            @select="handleSelectTeam"
            placeholder="请输入内容"
          >
          </el-autocomplete>
        </el-form-item>
        <el-form-item prop="jobTitle" label="职位名称" size="small" class="item-inline">
          <el-input type="text" v-model="teamRow.jobTitle"></el-input>
        </el-form-item>
        <el-form-item prop="pursueReason" label="申请原因" size="small" class="item-inline">
          <el-select v-model="teamRow.pursueReason" placeholder="请选择">
            <el-option
              v-for="item in global.pursueReasonList"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item prop="jobDescription" label="职位描述" size="small">
          <el-input type="textarea" v-model="teamRow.jobDescription"></el-input>
        </el-form-item>
        <el-form-item prop="jobRequirements" label="任职要求" size="small">
          <el-input type="textarea" v-model="teamRow.jobRequirements"></el-input>
        </el-form-item>
        <el-form-item label="基本期望" size="small">
        </el-form-item>
        <el-form-item prop="sex" label="性别" size="small">
          <el-radio-group v-model="teamRow.sex">
            <el-radio :label="0">不需求</el-radio>
            <el-radio :label="1">男</el-radio>
            <el-radio :label="2">女</el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item prop="age" label="年龄" size="small" class="item-inline">
          <el-input type="text" v-model="teamRow.age"></el-input>
        </el-form-item>
        <el-form-item prop="payment" label="薪酬" size="small" class="item-inline">
          <el-input type="text" v-model="teamRow.payment"></el-input>
        </el-form-item>
        <el-form-item label="教育背景" size="small">
        </el-form-item>
        <el-form-item label="学历" size="small" class="item-inline">
          <el-select v-model="teamRow.education" placeholder="请选择">
            <el-option
              v-for="item in global.educationListOther"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="专业" size="small" class="item-inline">
          <el-input type="text" v-model="teamRow.profession"></el-input>
        </el-form-item>
        <el-form-item label="工作经验" size="small">
        </el-form-item>
        <el-form-item label="行业背景" size="small" class="item-inline">
          <el-input type="text" v-model="teamRow.industryBackground"></el-input>
        </el-form-item>
        <el-form-item label="工作年限" size="small" class="item-inline">
          <el-select v-model="teamRow.workSeniority" placeholder="请选择">
            <el-option
              v-for="item in global.workSeniorityList"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="跳槽频率" size="small" class="item-inline">
          <el-select v-model="teamRow.jobHopping" placeholder="请选择">
            <el-option
              v-for="item in global.jobHoppingList"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="必备技能" size="small">
        </el-form-item>
        <el-form-item label="电脑水平" size="small" class="item-inline">
          <el-select v-model="teamRow.computer" placeholder="请选择">
            <el-option
              v-for="item in global.computerList"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="外语水平" size="small" class="item-inline">
          <el-select v-model="teamRow.foreignLanguage" placeholder="请选择">
            <el-option
              v-for="item in global.foreignLanguageList"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="优先条件" size="small">
          <el-input type="text" v-model="teamRow.priority"></el-input>
        </el-form-item>
        <el-form-item label="部门负责人" size="small">
        </el-form-item>
        <el-form-item label="意见" size="small">
          <el-input type="textarea" v-model="teamRow.departmentHeadOpinion"></el-input>
        </el-form-item>
        <el-form-item label="签字" size="small" class="item-inline">
          <el-input type="text" v-model="teamRow.departmentHead"></el-input>
        </el-form-item>
        <el-form-item label="时间" size="small" class="item-inline">
          <el-date-picker
            v-model="teamRow.departmentTime"
            type="date"
            value-format="timestamp"
            placeholder="选择日期"
            style="width: 190px">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="人力负责人" size="small">
        </el-form-item>
        <el-form-item label="意见" size="small">
          <el-input type="textarea" v-model="teamRow.hrOpinion"></el-input>
        </el-form-item>
        <el-form-item label="签字" size="small" class="item-inline">
          <el-input type="text" v-model="teamRow.hr"></el-input>
        </el-form-item>
        <el-form-item label="时间" size="small" class="item-inline">
          <el-date-picker
            v-model="teamRow.hrTime"
            type="date"
            value-format="timestamp"
            placeholder="选择日期"
            style="width: 190px">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="总经理审批" size="small">
        </el-form-item>
        <el-form-item label="意见" size="small">
          <el-input type="textarea" v-model="teamRow.generalManagerOpinion"></el-input>
        </el-form-item>
        <el-form-item label="签字" size="small" class="item-inline">
          <el-input type="text" v-model="teamRow.generalManager"></el-input>
        </el-form-item>
        <el-form-item label="时间" size="small" class="item-inline">
          <el-date-picker
            v-model="teamRow.generalManagerTime"
            type="date"
            value-format="timestamp"
            placeholder="选择日期"
            style="width: 190px">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="备注说明" size="small">
          <el-input type="textarea" v-model="teamRow.remark"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="warning" size="small"  @click="submitForm('teamRow')" v-no-more-click>确定</el-button>
        <el-button size="small" @click="outerVisible = false">取消</el-button>
      </div>
    </el-dialog>
    <el-dialog title="处理" :visible.sync="chuliVisible" width="700px">
      <el-form ref="chuliRow" :model="chuliRow" label-width="80px">
        <el-form-item label="意见" size="small">
          <el-input type="textarea" v-model="chuliRow.content"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="warning" size="small" @click="submitChuli('chuliRow')">确定</el-button>
        <el-button size="small" @click="chuliVisible = false">取消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
  import {
    delRequirement,
    getRequirement,
    insertRequirement,
    selectRequirement,
    updateRequirement,
    selectTeam,
    addInform
  } from '@/api/requirement1'
  import myTable from '@/components/myTable'
  import global from '@/components/global'

  import { AreaSelect } from 'vue-area-linkage'
  import { pca } from 'area-data'
  import { formatDate } from '@/utils/index'

  const time = {
    props: ['colConfig'],
    filters: {
      formatDate(time) {
        var date = new Date(time)
        return formatDate(date, 'yyyy-MM-dd')
      }
    },
    template: `
  <el-table-column :label="colConfig.label" :width="colConfig.width" :fixed="colConfig.fixed">
      <span slot-scope="scope">
        {{ scope.row[colConfig.prop] | formatDate }}
      </span>
  </el-table-column>
  `
  }

  const formatter = function(row, column) {
    if (row[column.property]) {
      let obj = {}
      obj = global[`${column.property}List`].find((item) => {
        return item.value === row[column.property] // 筛选出匹配数据
      })
      return obj.label
    }
  }

  const configs = {
    props: ['colConfig'],
    filters: {
      formatMonth(time) {
        var date = new Date(time)
        return formatDate(date, 'yyyyMM')
      },
      formatDate(time) {
        var date = new Date(time)
        return formatDate(date, 'yyyyMMdd')
      },
      formatTime(time) {
        console.log(time)
        var date = new Date(time)
        return formatDate(date, 'yyyy-MM-dd hh:mm:ss')
      },
      formatSex(sex) {
        if (sex === 1) {
          return '男'
        } else if (sex === 2) {
          return '女'
        } else {
          return '不需求'
        }
      },
      formatter(row, prop) {
        if (row[prop]) {
          let obj = {}
          obj = global[`${prop}List`].find((item) => {
            return item.value === row[prop] // 筛选出匹配数据
          })
          return obj.label
        }
      },
      formatterOther(row, prop) {
        if (row[prop]) {
          let obj = {}
          obj = global[`${prop}ListOther`].find((item) => {
            return item.value === row[prop] // 筛选出匹配数据
          })
          return obj.label
        }
      }
    },
    template: `
  <el-table-column :label="colConfig.label">
            <el-table-column  v-for="(item, index) in colConfig.children"  :label="item.label" :width="item.width">
                <span slot-scope="scope" >
                    <span v-if="item.component==='month'"> {{ scope.row[item.prop] | formatMonth }}</span>
                    <span v-else-if="item.component==='time'"> {{ scope.row[item.prop] | formatDate }}</span>
                    <span v-else-if="item.component==='sex'"> {{ scope.row[item.prop] | formatSex }}</span>
                    <span v-else-if="item.component==='formatter'"> {{ scope.row,item.prop | formatter }}</span>
                    <span v-else-if="item.component==='formatterOther'"> {{ scope.row,item.prop | formatterOther }}</span>
                    <span v-else >{{scope.row[item.prop]}}</span>
                </span>
            </el-table-column>
  </el-table-column>
  `
  }

  export default {
    components: {
      myTable,
      AreaSelect
    },
    data() {
      return {
        colConfigs: [
          { prop: 'applicationDate', label: '申请日期', width: '150', fixed: true, component: time },
          { prop: 'arrivalDate', label: '要求到岗日期', width: '150', fixed: true, component: time },
          { prop: 'jobTitle', label: '需求职位名称', width: '150', fixed: true },
          { prop: 'vacancyNumber', label: '空缺人数', width: '100', fixed: true },
          { prop: 'teamName', label: '隶属部门', width: '150', fixed: true },
          { prop: 'pursueReason', label: '申请原因', width: '150', formatter: formatter },
          {
            label: '基本期望', children: [
              { prop: 'sex', label: '性别', width: '100', component: 'sex' },
              { prop: 'age', label: '年龄', width: '150' },
              { prop: 'payment', label: '薪酬', width: '150' }
            ], component: configs
          },
          {
            label: '工作经验', children: [
              { prop: 'industryBackground', label: '行业背景', width: '150' },
              { prop: 'workSeniority', label: '工作年限', width: '100', component: 'formatter' },
              { prop: 'jobHopping', label: '跳槽频率', width: '100', component: 'formatter' }
            ], component: configs
          },
          {
            label: '教育背景', children: [
              { prop: 'education', label: '学历', width: '100', component: 'formatterOther' },
              { prop: 'profession', label: '专业', width: '150' }
            ], component: configs
          },
          {
            label: '必备技能', children: [
              { prop: 'foreignLanguage', label: '电脑水平', width: '100', component: 'formatter' },
              { prop: 'foreignLanguage', label: '外语水平', width: '100', component: 'formatter' }
            ], component: configs
          },
          { prop: 'priority', label: '优先条件', width: '150' },
          {
            label: '工作要求', children: [
              { prop: 'jobDescription', label: '职位描述', width: '150' },
              { prop: 'jobRequirements', label: '任职要求', width: '150' }
            ], component: configs
          },
          {
            label: '部门负责人', children: [
              { prop: 'departmentHeadOpinion', label: '意見', width: '100' },
              { prop: 'departmentHead', label: '签字', width: '100' },
              { prop: 'departmentTime', label: '时间', width: '100', component: 'time' }
            ], component: configs
          },
          {
            label: '人力资源部', children: [
              { prop: 'hrOpinion', label: '意見', width: '100' },
              { prop: 'hr', label: '签字', width: '100' },
              { prop: 'hrTime', label: '时间', width: '100', component: 'time' }
            ], component: configs
          },
          {
            label: '总经理', children: [
              { prop: 'generalManagerOpinion', label: '意見', width: '100' },
              { prop: 'generalManager', label: '签字', width: '100' },
              { prop: 'generalManagerTime', label: '时间', width: '100', component: 'time' }
            ], component: configs
          },
          { slot: 'opt' }
        ],
        searchForm: {},
        searchFormList: {},
        tenderNames: [],
        infoTitles: [],
        listLoading: true,
        dialogTitle: '新增社保',
        dialogType: 0,
        teamRow: {},
        teamRowClear: {},
        tableData: [],
        pageNum: 1,
        pageSize: 10,
        total: 1,
        outerVisible: false,
        chuliVisible: false,
        innerVisible: false,
        pca: pca,
        rules: {
          applicationDate: [
            { required: true, message: '请选择申请日期', trigger: 'change' }
          ],
          vacancyNumber: [
            { required: true, message: '请输入空缺人数', trigger: 'change' }
          ],
          arrivalDate: [
            { required: true, message: '请选择到岗日期', trigger: 'change' }
          ],
          teamName: [
            { required: true, message: '请选择隶属部门', trigger: 'change' }
          ],
          jobTitle: [
            { required: true, message: '请输入职位名称', trigger: 'change' }
          ],
          pursueReason: [
            { required: true, message: '请选择申请原因', trigger: 'change' }
          ],
          jobDescription: [
            { required: true, message: '请输入职位描述', trigger: 'change' }
          ],
          jobRequirements: [
            { required: true, message: '请输入任职要求', trigger: 'change' }
          ],
          sex: [
            { required: true, message: '请选择性别', trigger: 'change' }
          ],
          age: [
            { required: true, message: '请输入年龄', trigger: 'change' }
          ],
          payment: [
            { required: true, message: '请输入薪酬', trigger: 'change' }
          ]
        },
        visible: false,
        chuliRow: {},
        chuliParams: {}
      }
    },
    created() {
      this.teamRowClear = JSON.parse(JSON.stringify(this.teamRow))
      this.fetchData()
    },
    computed: {
      global() {
        return global
      },
      teamId() {
        return this.$store.state.user.teamId
      },
      isDirector() {
        return this.$store.state.user.isDirector
      },
      roleType() {
        return this.$store.state.user.roleType
      },
      userId() {
        return this.$store.state.user.roleType
      },
      teamIds() {
        return this.$store.state.user.teamIds
      }
    },
    methods: {
      fetchData() {
        this.searchFormList.pageNum = this.pageNum
        this.searchFormList.pageSize = this.pageSize
        this.searchFormList.roleType = this.roleType
        this.searchFormList.teamId = this.teamId
        this.searchFormList.teamIds = this.teamIds
        this.listLoading = true
        getRequirement(this.searchFormList).then(response => {
          this.tableData = response.responseBody.list
          this.total = response.responseBody.total
          this.listLoading = false
        })
      },
      search() {
        this.pageNum = 1
        this.searchFormList = JSON.parse(JSON.stringify(this.searchForm))
        this.fetchData()
      },
      addTeam() {
        if (this.$refs['teamRow']) {
          this.$refs['teamRow'].resetFields()
        }
        this.outerVisible = true
        this.dialogTitle = '新增人员需求'
        this.teamRow = JSON.parse(JSON.stringify(this.teamRowClear))
        this.teamRow.isTender = 1
        this.dialogType = 1
      },
      editTeam(personId) {
        if (this.$refs['teamRow']) {
          this.$refs['teamRow'].resetFields()
        }
        this.outerVisible = true
        this.dialogTitle = '修改人员需求'
        this.dialogType = 0
        this.teamRow = JSON.parse(JSON.stringify(this.teamRowClear))
        const params = {
          personId: personId
        }
        selectRequirement(params).then(response => {
          const data = response.responseBody
          this.teamRow = Object.assign({}, this.teamRow, data)
        })
      },
      chuli(row) {
        this.chuliVisible = true
        this.chuliRow = Object.assign({})
        this.chuliParams = {
          type: 1,
          teamName: row.teamName,
          userId: this.userId,
          createdId: row.createdId
        }
      },
      submitChuli(formName) {
        this.chuliRow = Object.assign({}, this.chuliRow, this.chuliParams)
        this.$refs[formName].validate((valid) => {
          if (valid) {
            addInform(this.chuliRow).then(response => {
              this.chuliVisible = false
              this.fetchData()
            })
          } else {
            console.log('error submit!!')
            return false
          }
        })
      },
      agree(row) {
        const params = {
          type: 2,
          teamName: row.teamName,
          userId: this.userId,
          createdId: row.createdId,
          personId: row.personId
        }
        addInform(params).then(response => {
          this.fetchData()
        })
      },
      submitForm(formName) {
        const params = {
          applicationDate: this.teamRow.applicationDate,
          vacancyNumber: this.teamRow.vacancyNumber,
          arrivalDate: this.teamRow.arrivalDate,
          teamId: this.teamRow.teamId,
          teamName: this.teamRow.teamName,
          jobTitle: this.teamRow.jobTitle,
          pursueReason: this.teamRow.pursueReason,
          jobDescription: this.teamRow.jobDescription,
          jobRequirements: this.teamRow.jobRequirements,
          sex: this.teamRow.sex,
          age: this.teamRow.age,
          payment: this.teamRow.payment,
          education: this.teamRow.education,
          profession: this.teamRow.profession,
          industryBackground: this.teamRow.industryBackground,
          workSeniority: this.teamRow.workSeniority,
          jobHopping: this.teamRow.jobHopping,
          computer: this.teamRow.computer,
          foreignLanguage: this.teamRow.foreignLanguage,
          priority: this.teamRow.priority,
          departmentHeadOpinion: this.teamRow.departmentHeadOpinion,
          departmentHead: this.teamRow.departmentHead,
          departmentTime: this.teamRow.departmentTime,
          hrOpinion: this.teamRow.hrOpinion,
          hr: this.teamRow.hr,
          hrTime: this.teamRow.hrTime,
          generalManagerOpinion: this.teamRow.generalManagerOpinion,
          generalManager: this.teamRow.generalManager,
          generalManagerTime: this.teamRow.generalManagerTime
        }
        if (!this.dialogType) {
          params.personId = this.teamRow.personId
        }
        if (this.teamRow.teamId) {
          this.$refs[formName].validate((valid) => {
            if (valid) {
              if (this.dialogType) {
                insertRequirement(params).then(response => {
                  console.log(response)
                  this.outerVisible = false
                  this.fetchData()
                })
              } else {
                updateRequirement(params).then(response => {
                  console.log(response)
                  this.outerVisible = false
                  this.fetchData()
                })
              }
            } else {
              console.log('error submit!!')
              return false
            }
          })
        } else {
          this.$message({
            message: '该团队不存在',
            type: 'warning'
          })
        }
      },
      deleteRow(scope) {
        this.$refs[`popover-${scope.$index}`].doClose()
        const params = {
          personId: scope.row.personId,
          isDel: 1
        }
        delRequirement(params).then(response => {
          this.fetchData()
        })
      },
      handleSizeChange(val) {
        this.pageSize = val
        this.fetchData()
      },
      handleCurrentChange(val) {
        this.pageNum = val
        this.fetchData()
      },
      querySearchTeam(queryString, callback) {
        // queryString 为在框中输入的值
        // callback 回调函数,将处理好的数据推回
        delete this.teamRow.teamId
        const params = {
          teamName: queryString
        }
        selectTeam(params).then(response => {
          for (const i of response.responseBody) {
            i.value = i.teamName
          }
          let nameList = response.responseBody
          if (nameList.length === 0) {
            nameList = [{ value: '暂无数据' }]
          }
          callback(nameList)
        })
      },
      handleSelectTeam(item) {
        console.log(item)
        this.$set(this.teamRow, 'teamId', item.teamId)
        this.$set(this.teamRow, 'teamName', item.teamName)
      }
    },
    mounted() {
      console.log(this.pca)
    }
  }
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  .app-container {
    .el-pagination {
      margin-top: 20px;
    }
    .table-btn {
      margin-bottom: 10px;
      & > button {
        margin: 0 20px;
      }
      .el-dialog {
        textarea {
          margin-top: 10px;
        }
        .el-checkbox {
          margin-right: 20px;
        }
        .el-checkbox + .el-checkbox {
          margin-left: 0;
        }
      }
    }
    .item-inline {
      display: inline-block;
      width: 300px;
    }
  }

</style>


<style rel="stylesheet/scss" lang="scss">
  .el-input__icon {
    line-height: 100%;
  }

  .el-form-item__content {
    line-height: 33px;
  }

  .area-select .area-selected-trigger {
    padding: 0 10px;
  }

  /*.inner-dialog {*/
  /*.item-inline {*/
  /*display: inline-block;*/
  /*width: 300px;*/
  /*}*/
  /*}*/

  /*.el-table__body tr.hover-row>td {
    background-color: #0000ff !important;
  }

  .el-table__body tr.current-row>td {
    background-color: #0000ff !important;
  }*/
</style>
